package com.example.mediademo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;

@SpringBootApplication
@EntityScan(basePackages = "com.example.mediademo.entity")  // 显式指定实体类扫描路径
@EnableJpaRepositories("com.example.mediademo.repository")
public class MediademoApplication {

	public static void main(String[] args) {
		SpringApplication.run(MediademoApplication.class, args);
	}

}
